package gemini.castor.ui.client.page.content.store.shoppingcart;

import gemini.basic.model.Product;
import gemini.castor.ui.client.page.RootPresenter;

import com.google.gwt.validation.client.interfaces.IValidatable;

public class ShoppingCartItem implements IValidatable {
	
	private int number;
	private Product product;
	private int quantity;
	private boolean deleted;
	private boolean selected;
	private Integer orderId;
	
	public ShoppingCartItem(){
		number = RootPresenter.currentCartItemNumber;
		RootPresenter.currentCartItemNumber++;
	}

	public int getQuantity() {
		return quantity;
	}

	public void setQuantity(int quantity) {
		this.quantity = quantity;
	}

	public boolean isDeleted() {
		return deleted;
	}

	public void setDeleted(boolean deleted) {
		this.deleted = deleted;
	}

	public void setSelected(boolean selected) {
		this.selected = selected;
	}

	public boolean isSelected() {
		return selected;
	}

	public void setProduct(Product product) {
		this.product = product;
	}

	public Product getProduct() {
		return product;
	}

	public void setNumber(int number) {
		this.number = number;
	}

	public int getNumber() {
		return number;
	}

	public void setOrderId(Integer orderId) {
		this.orderId = orderId;
	}

	public Integer getOrderId() {
		return orderId;
	}
}
